#pragma once


/**
 * @brief 提供兼容Arduino 的常用接口
 * 
 */


#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>

#include <SDL_timer.h>

#include "avr/dtostrf.h"
#include "Printable.h"
#include "Print.h"
#include "Stream.h"
#include "WMath.h"
#include "WString.h"
#include "WCharacter.h"
#include "wiring_constants.h"


inline void delay(uint32_t ms) {
    SDL_Delay(ms);
}


inline uint32_t millis() {
    return SDL_GetTicks();
}

inline uint32_t micros() {
    return SDL_GetTicks() * 1000;
}